From: Ewan Mellor Date: Wed, 4 Apr 2007 14:00:57 +0000 (+0100) Subject: Remove docs and bindings for unimplemented VDI.resize and VDI.snapshot. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~15264^2~13 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22Dat/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22Dat?a=commitdiff_plain;h=3a7400aa8668b4ec5b9590662d29510001b10bd7;p=xen.git Remove docs and bindings for unimplemented VDI.resize and VDI.snapshot. Signed-off-by: Ewan Mellor --- diff --git a/docs/xen-api/xenapi-datamodel.tex b/docs/xen-api/xenapi-datamodel.tex index 760f4bfc62..ed67328ec5 100644 --- a/docs/xen-api/xenapi-datamodel.tex +++ b/docs/xen-api/xenapi-datamodel.tex @@ -9748,73 +9748,6 @@ $\mathit{RW}$ & {\tt other\_config} & (string $\rightarrow$ string) Map & addit \hline \end{longtable} \subsection{RPCs associated with class: VDI} -\subsubsection{RPC name:~snapshot} - -{\bf Overview:} -Take an exact copy of the VDI; the snapshot lives in the same Storage -Repository as its parent. - - \noindent {\bf Signature:} -\begin{verbatim} (VDI ref) snapshot (session_id s, VDI ref vdi)\end{verbatim} - - -\noindent{\bf Arguments:} - - -\vspace{0.3cm} -\begin{tabular}{|c|c|p{7cm}|} - \hline -{\bf type} & {\bf name} & {\bf description} \\ \hline -{\tt VDI ref } & vdi & The VDI to snapshot \\ \hline - -\end{tabular} - -\vspace{0.3cm} - - \noindent {\bf Return Type:} -{\tt -VDI ref -} - - -The ID of the newly created VDI. -\vspace{0.3cm} -\vspace{0.3cm} -\vspace{0.3cm} -\subsubsection{RPC name:~resize} - -{\bf Overview:} -Resize the vdi to the size. - - \noindent {\bf Signature:} -\begin{verbatim} void resize (session_id s, VDI ref vdi, int size)\end{verbatim} - - -\noindent{\bf Arguments:} - - -\vspace{0.3cm} -\begin{tabular}{|c|c|p{7cm}|} - \hline -{\bf type} & {\bf name} & {\bf description} \\ \hline -{\tt VDI ref } & vdi & The VDI to resize \\ \hline - -{\tt int } & size & The new size of the VDI \\ \hline - -\end{tabular} - -\vspace{0.3cm} - - \noindent {\bf Return Type:} -{\tt -void -} - - - -\vspace{0.3cm} -\vspace{0.3cm} -\vspace{0.3cm} \subsubsection{RPC name:~get\_all} {\bf Overview:} diff --git a/tools/libxen/include/xen_vdi.h b/tools/libxen/include/xen_vdi.h index 9ebb8fd9ee..74b63542e6 100644 --- a/tools/libxen/include/xen_vdi.h +++ b/tools/libxen/include/xen_vdi.h @@ -337,21 +337,6 @@ extern bool xen_vdi_remove_from_other_config(xen_session *session, xen_vdi vdi, char *key); -/** - * Take an exact copy of the VDI; the snapshot lives in the same - * Storage Repository as its parent. - */ -extern bool -xen_vdi_snapshot(xen_session *session, xen_vdi *result, xen_vdi vdi); - - -/** - * Resize the vdi to the size. - */ -extern bool -xen_vdi_resize(xen_session *session, xen_vdi vdi, int64_t size); - - /** * Return a list of all the VDIs known to the system. */ diff --git a/tools/libxen/src/xen_vdi.c b/tools/libxen/src/xen_vdi.c index 91cc306021..66a524c9c3 100644 --- a/tools/libxen/src/xen_vdi.c +++ b/tools/libxen/src/xen_vdi.c @@ -507,39 +507,6 @@ xen_vdi_remove_from_other_config(xen_session *session, xen_vdi vdi, char *key) } -bool -xen_vdi_snapshot(xen_session *session, xen_vdi *result, xen_vdi vdi) -{ - abstract_value param_values[] = - { - { .type = &abstract_type_string, - .u.string_val = vdi } - }; - - abstract_type result_type = abstract_type_string; - - *result = NULL; - XEN_CALL_("VDI.snapshot"); - return session->ok; -} - - -bool -xen_vdi_resize(xen_session *session, xen_vdi vdi, int64_t size) -{ - abstract_value param_values[] = - { - { .type = &abstract_type_string, - .u.string_val = vdi }, - { .type = &abstract_type_int, - .u.int_val = size } - }; - - xen_call_(session, "VDI.resize", param_values, 2, NULL, NULL); - return session->ok; -} - - bool xen_vdi_get_all(xen_session *session, struct xen_vdi_set **result) { diff --git a/tools/python/xen/xend/XendAPI.py b/tools/python/xen/xend/XendAPI.py index e6798ce19a..9c7b9a461a 100644 --- a/tools/python/xen/xend/XendAPI.py +++ b/tools/python/xen/xend/XendAPI.py @@ -2187,7 +2187,7 @@ class XendAPI(object): 'other_config'] VDI_attr_inst = VDI_attr_ro + VDI_attr_rw - VDI_methods = [('snapshot', 'VDI'), ('destroy', None)] + VDI_methods = [('destroy', None)] VDI_funcs = [('create', 'VDI'), ('get_by_name_label', 'Set(VDI)')] @@ -2251,8 +2251,6 @@ class XendAPI(object): return xen_api_success_void() # Object Methods - def VDI_snapshot(self, session, vdi_ref): - return xen_api_todo() def VDI_destroy(self, session, vdi_ref): sr = XendNode.instance().get_sr_containing_vdi(vdi_ref)